#
# Be sure to run `pod lib lint JLHome.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
  s.name             = 'JLHome'
  s.version          = '0.1.1'
  s.summary          = '首页组件'

# This description is used to generate tags and improve search results.
#   * Think: What does it do? Why did you write it? What is the focus?
#   * Try to keep it short, snappy and to the point.
#   * Write the description between the DESC delimiters below.
#   * Finally, don't worry about the indent, CocoaPods strips it!

  s.description      ='首页组件，第一版本主要功能是进件'

  s.homepage         = 'https://gitlab.jlpay.com'
  # s.screenshots     = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { 'shimminZ' => '272110599@qq.com' }
  s.source           = { :git => 'https://gitlab.jlpay.com/access-services/common-components/ios-component.git',  :tag => "#{s.name}_v#{s.version}" }

  s.ios.deployment_target = '10.0'
  s.swift_version = '5.0'

  s.source_files = 'JLHome/JLHome/Classes/**/*'
  
   s.resource_bundles = {
     'JLHome' => ['JLHome/JLHome/Assets/*.png']
   }

  # s.public_header_files = 'Pod/Classes/**/*.h'
  # s.frameworks = 'UIKit', 'MapKit'
  # s.dependency 'AFNetworking', '~> 2.3'
  
  s.dependency 'RxSwift', '6.2.0'
  s.dependency 'RxCocoa', '6.2.0'
  s.dependency 'SnapKit', '5.0.1'
  s.dependency 'JLMain',  '0.1.3'
  s.dependency 'JLBase'
  s.dependency 'SDCycleScrollView'
  
  #控制器
  s.subspec 'HomeModuleCtrs' do |ss|
      ss.source_files = 'JLHome/JLHome/Classes/HomeModuleCtrs/**/*'
      ss.dependency 'JLHome/HomeMoudleInsideRoute'
      ss.dependency 'JLHome/HomeModuleTool'
      ss.dependency 'JLHome/HomeModuleProtocol'
      ss.dependency 'JLHome/HomeModuleDefine'

   end
  
  #内部使用外部的scheme
  s.subspec 'HomeMoudleInsideRoute' do |ss|
      ss.source_files = 'JLHome/JLHome/Classes/HomeMoudleInsideRoute/**/*'
    end
  
  #view
#  s.subspec 'HomeModuleView' do |ss|
#      ss.source_files = 'JLHome/JLHome/Classes/HomeModuleView/**/*'
##      ss.dependency 'JLLogin/LoginModuleCtrs'
#    end

  #工具
  s.subspec 'HomeModuleTool' do |ss|
      ss.source_files = 'JLHome/JLHome/Classes/HomeModuleTool/**/*'
      ss.dependency 'JLHome/HomeModuleDefine'
    end

  #协议
  s.subspec 'HomeModuleProtocol' do |ss|
      ss.source_files = 'JLHome/JLHome/Classes/HomeModuleProtocol/**/*'
    end
  
  #静态变量
  s.subspec 'HomeModuleDefine' do |ss|
      ss.source_files = 'JLHome/JLHome/Classes/HomeModuleDefine/**/*'
    end
  
  #提供对外部的路由
  s.subspec 'HomeModuleRoute' do |ss|
      ss.source_files = 'JLHome/JLHome/Classes/HomeModuleRoute/**/*'
      ss.dependency 'JLHome/HomeModuleCtrs'
    end

  
end
